<?
session_start();
include('conn.php');

$qry1 = "SELECT * from categorymast where status=0 and catid <> 1 order by catid desc";

$qry = mysql_query($qry1);
$data = array();
$i=1;
while($rows = mysql_fetch_array($qry))
{
	$data[] = array("Sr_NO" => $i++,
					"catdesc" => $rows['catdesc']);
}
echo json_encode($data);
?>